package com.tensquare.article;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

/**
 * & ProjectName：  tensquare-parent
 * & PackageName:   PACKAGE_NAME
 * & Creation_Date： 2020/3/30 05:43
 * & Author：しの
 * ----------------------------------
 * & Description:启动类
 */
@SpringBootApplication
public class ArticleApplication {
    public static void main(String[] args) {
        SpringApplication.run(ArticleApplication.class);
    }

    //1 配置IdWorker
    @Bean
    public IdWorker idWorker(){
        return new IdWorker(0,1);
    }
}
